package com.xyazm.market.domain.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 计算订单费用DTO
 */
@Data
public class CalculateOrderAmountDTO implements Serializable {


    @ApiModelProperty(value = "订单费用信息")
    private List<OrderAmountDTO> orderAmountList;

    @ApiModelProperty(value = "订单条目费用信息")
    private List<OrderAmountDetailDTO> orderAmountDetail;

    /**
     * 营销系统计算出来的费用信息
     * @author xuyou
     * 2022/4/28 0028 21:42
    */
    @Data
    public static class OrderAmountDTO implements Serializable {

        @ApiModelProperty(value = "订单编号")
        private String orderId;

        @ApiModelProperty(value = "收费类型")
        private Integer amountType;

        @ApiModelProperty(value = "收费金额")
        private Integer amount;

    }

    /**
     * 营销系统计算出来的订单条目费用信息
     * @author xuyou
     * 2022/4/28 0028 21:59
    */
    @Data
    public static class OrderAmountDetailDTO implements Serializable {

        @ApiModelProperty(value = "订单编号")
        private String orderId;

        @ApiModelProperty(value = "产品类型")
        private Integer productType;

        @ApiModelProperty(value = "sku编码")
        private String skuCode;

        @ApiModelProperty(value = "销售数量")
        private Integer saleQuantity;

        @ApiModelProperty(value = "销售单价")
        private Integer salePrice;

        @ApiModelProperty(value = "收费类型")
        private Integer amountType;

        @ApiModelProperty(value = "收费金额")
        private Integer amount;

    }

}
